package com.example.demo.dao;

import com.example.demo.pojo.Tool;
import com.example.demo.pojo.tool_Admin;
import com.example.demo.pojo.tool_User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


//@Mapper
@Repository
public interface ToolAdminMapper {
    tool_Admin findToolAdmin(String admin_usernameCode,String admin_passwordCode);

    List<Tool> selectAlltool();

    List<Tool> selectByid(String tool_idCode);

    Tool selectByKey(String tool_id);

    int editTool(Tool tool);

    int deleteByid(String tool_id);

    int addTool(Tool tool);




    List<tool_User> selectAlluser();

    int addUser(tool_User user);

    List<tool_User> selectByuserid(String user_idCode);

    int deleteByuserid(String user_id);

    tool_User selectByuserKey(String user_id);

    int editUser(tool_User user);
}
